import request from "@/api/index.js";

// // 获取uid skey openId
// export const algin = () => {
//   return request({
//     method: "GET", //请求方法
//     url: "/api/nsc/weroad/getCookie?authCode=YWJhNjFhYTQ1NjdjNDMwMGI0NzRkNjk5", //请求地址
//   });
// };

// 导航页面详情配置
export const getInfoById = (params) => {
  return request({
    method: "GET", //请求方法
    url: "/api/nsc/front/ndFrontPage/getInfoById/" + params.menuId,
  });
};
// 获取导航配置接口
export const getlist = () => {
  return request({
    method: "GET",
    url: "/api/nsc/front/ndFrontMenu/list",
  });
};

// 获取后台富文本的内容
export const getText = (params) => {
  return request({
    method: "GET",
    url: params,
  });
};
// 根据id查询导航Tab配置接口
export const getTableId = (params) => {
  return request({
    method: "GET",
    url: "/api/nsc/front/ndFrontMenuTab/getInfoById/" + params.menuId,
  });
};
//获取轮播图接口
export const getimgs = (menuid) => {
  return request({
    method: "GET",
    url: `/api/nsc/front/ndFrontMenuBanner/getInfoById/${menuid}`,
  });
};
